package com.ruoyi.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售对象 sales
 * 
 * @author ruoyi
 * @date 2025-04-01
 */
public class Sales extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增长主键 */
    private Long id;

    /** 业务日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "业务日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date businessDate;

    /** 单据编号 */
    @Excel(name = "单据编号")
    private String receiptCode;

    /** 客户ID */
    @Excel(name = "客户ID")
    private Long customerId;

    /** 应收金额 */
    @Excel(name = "应收金额")
    private BigDecimal totalAmount;

    /** 抹零金额 */
    @Excel(name = "抹零金额")
    private BigDecimal roundingAmount;

    /** 实收金额 */
    @Excel(name = "实收金额")
    private BigDecimal actualPayment;

    /** 待收金额 */
    @Excel(name = "待收金额")
    private BigDecimal pendingPayment;

    /** 收款状态 */
    @Excel(name = "收款状态")
    private String paymentStatus;

    /** 业务员ID */
    @Excel(name = "业务员ID")
    private Long salespersonId;


    /**
     * 付款方式
     */
    private String paymentMethod;


    /** 操作 */
    @Excel(name = "操作")
    private String operation;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;


    /**
     * 折扣类型
     */
    private String discountType;

    /**
     * 折后金额
     */
    private BigDecimal discountedAmount;

    /**
     *折扣/优惠金额
     */
    private BigDecimal discount;



    private String type;


    private BigDecimal alipayAmount;
    private BigDecimal bankAmount;
    private BigDecimal cashAmount;
    private BigDecimal wechatAmount;

    private long userId;


    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public BigDecimal getAlipayAmount() {
        return alipayAmount;
    }

    public void setAlipayAmount(BigDecimal alipayAmount) {
        this.alipayAmount = alipayAmount;
    }

    public BigDecimal getBankAmount() {
        return bankAmount;
    }

    public void setBankAmount(BigDecimal bankAmount) {
        this.bankAmount = bankAmount;
    }

    public BigDecimal getCashAmount() {
        return cashAmount;
    }

    public void setCashAmount(BigDecimal cashAmount) {
        this.cashAmount = cashAmount;
    }

    public BigDecimal getWechatAmount() {
        return wechatAmount;
    }

    public void setWechatAmount(BigDecimal wechatAmount) {
        this.wechatAmount = wechatAmount;
    }

    public String getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(String paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    /** 销售单明细列表 */
    private List<SalesDetailItem> salesDetailItemList;

    public String getDiscountType() {
        return discountType;
    }

    public void setDiscountType(String discountType) {
        this.discountType = discountType;
    }

    public BigDecimal getDiscountedAmount() {
        return discountedAmount;
    }

    public void setDiscountedAmount(BigDecimal discountedAmount) {
        this.discountedAmount = discountedAmount;
    }

    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getBusinessDate() {
        return businessDate;
    }

    public void setBusinessDate(Date businessDate) {
        this.businessDate = businessDate;
    }

    public String getReceiptCode() {
        return receiptCode;
    }

    public void setReceiptCode(String receiptCode) {
        this.receiptCode = receiptCode;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getRoundingAmount() {
        return roundingAmount;
    }

    public void setRoundingAmount(BigDecimal roundingAmount) {
        this.roundingAmount = roundingAmount;
    }

    public BigDecimal getActualPayment() {
        return actualPayment;
    }

    public void setActualPayment(BigDecimal actualPayment) {
        this.actualPayment = actualPayment;
    }

    public BigDecimal getPendingPayment() {
        return pendingPayment;
    }

    public void setPendingPayment(BigDecimal pendingPayment) {
        this.pendingPayment = pendingPayment;
    }

    public String getPaymentStatus() {
        return paymentStatus;
    }

    public void setPaymentStatus(String paymentStatus) {
        this.paymentStatus = paymentStatus;
    }

    public Long getSalespersonId() {
        return salespersonId;
    }

    public void setSalespersonId(Long salespersonId) {
        this.salespersonId = salespersonId;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public List<SalesDetailItem> getSalesDetailItemList() {
        return salesDetailItemList;
    }

    public void setSalesDetailItemList(List<SalesDetailItem> salesDetailItemList) {
        this.salesDetailItemList = salesDetailItemList;
    }
}
